package com.example.prgraphview1;

import android.graphics.Color;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;

import com.androidplot.series.XYSeries;
import com.androidplot.xy.LineAndPointFormatter;
import com.androidplot.xy.SimpleXYSeries;
import com.androidplot.xy.XYPlot;
import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.GraphViewSeries;
import com.jjoe64.graphview.LineGraphView;
import java.util.Arrays;

import java.util.ArrayList;

public class MainActivity extends Activity {

    private ImageView imagen ;

    private XYPlot plotObj ;
    private XYPlot mySimpleXYPlot;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        LinearLayout layout = (LinearLayout) findViewById(R.id.lay1);
        XYPlot mySimpleXYPlot = (XYPlot) findViewById(R.id.plotObj);
        GraphicMaker graphicMaker = null;
        graphicMaker = new GraphViewGraphicMaker(layout, this);
        //graphicMaker = new AndroidPlotGraphicMaker(mySimpleXYPlot);
        graphicMaker.paint();
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}


